<template>
  <div :class="{ navCollapsed: isCollapse }">
    <common-aside class="sidebar"></common-aside>
    <div class="main-container">
      <common-header></common-header>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import CommonAside from "@/components/CommonAside";
import CommonHeader from "@/components/CommonHeader";
export default {
  components: {
    CommonAside,
    CommonHeader
  },
  computed: {
    isCollapse() {
      return this.$store.state.tab.isCollapse;
    }
  }
};
</script>

<style scoped>
.el-header {
  background-color: #333333;
}
.el-main {
  padding: 0;
}
</style>
